package com.xtpt.disaster.bean;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class ParametersDBBackup {

    @ApiModelProperty(value = "任务id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long taskId;

    @ApiModelProperty(value = "数据库信息id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long dbId;

    @ApiModelProperty(value = "任务的类型，备份BACKUP(0)，RECOVER(1)")
    private Integer taskType;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "任务描述")
    private String taskDesc;

    @ApiModelProperty(value = "任务备份类型：FULL(\"全量备份\", 0),\n" +
            "INCREMENT(\"增量备份\", 1);")
    private Integer taskBackupType;

    @ApiModelProperty(value = "执行备份任务的文件的类型")
    private Integer taskFileType;

    @ApiModelProperty(value = "任务的执行类型，IMMEDIATELY(\"立刻执行任务\",0),\n" +
            "START_AT(\"在指定时间执行一次\",1),\n" +
            "CALENDAR_INTERVAL(\"日、周、月、年周期性执行\",2),\n" +
            "CORN(\"根据Corn表达式执行\",3);\n")
    private Integer taskExectype;

}
